import mitt from 'mitt'

export const emitter = mitt();

//触发更新消息通知
export function trigerUpdateMsg(){
    emitter.emit("updateMsg")
}

export function updateUserInfo(){
    emitter.emit("updateUserInfo")
}

export function updateMenuCount(){
    emitter.emit("updateMenuCount");
}

export function openMenu(index:any){
    emitter.emit("openMenu",index);
}
